package com.jhgsys.internal.base.entity;


import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 安全奖品库存记录 Entity
 *
 * @author admin
 * @date 2024-08-06 09:41:00
 */
@Data
@TableName("base_goods_inventory_record")
public class BaseGoodsInventoryRecord implements Serializable {

    private static final long serialVersionUID = 2060362925339191587L;
    /**
     * 
     */
    @TableId(value = "goods_inventory_record_id", type = IdType.ASSIGN_UUID)
    @Size(max = 32, message = "{noMoreThan}")
    private String goodsInventoryRecordId;

    /**
     * 租户Id
     */
    @TableField("tenant_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String tenantId;

    /**
     * 安全奖品Id
     */
    @TableField("goods_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String goodsId;

    /**
     * 奖品名称
     */
    @TableField("goods_name")
    @NotBlank(message = "{required}")
    @Size(max = 150, message = "{noMoreThan}")
    private String goodsName;

    /**
     * 操作类型
     */
    @TableField("operate_type")
    @NotBlank(message = "{required}")
    @Size(max = 2, message = "{noMoreThan}")
    private String operateType;

    /**
     * 操作数量
     */
    @TableField("operate_number")
    @NotNull(message = "{required}")
    @Size(max = 4, message = "{noMoreThan}")
    private Integer operateNumber;
    /**
     * 操作前数量
     */
    @TableField("before_number")
    @NotNull(message = "{required}")
    @Size(max = 4, message = "{noMoreThan}")
    private Integer beforeNumber;
    /**
     * 操作后数量
     */
    @TableField("after_number")
    @NotNull(message = "{required}")
    @Size(max = 4, message = "{noMoreThan}")
    private Integer afterNumber;
    /**
     * 操作备注
     */
    @TableField("remark")
    @Size(max = 2000, message = "{noMoreThan}")
    private String remark;

    /**
     * 
     */
    @TableField("created_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String createdBy;

    /**
     * 
     */
    @TableField("created_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    /**
     * 
     */
    @TableField("updated_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String updatedBy;

    /**
     * 
     */
    @TableField("updated_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;

    /**
     * 
     */
    @TableField("deleted_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String deletedBy;

    /**
     * 
     */
    @TableField("deleted_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date deletedTime;

    /**
     * 
     */
    @TableField("deleted_flg")
    @Size(max = 1, message = "{noMoreThan}")
    private String deletedFlg;
}